//
//  ViewController.swift
//  caiShen
//
//  Created by mac on 16/3/24.
//  Copyright © 2016年 Qingke. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    let words = ["刘亦菲", "杨幂","刘诗诗"]

    @IBOutlet weak var label: UILabel!
    
    
    @IBAction func godButton(sender: UIButton) {
        label.text = "给你\(arc4random_uniform(10000))"
    }
    
    @IBAction func girlButton(sender: UIButton) {
        label.text = "你的媳妇是：\(words[Int(arc4random_uniform(UInt32(words.count)))])"
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

